package com.wnhoo.smartfishtank.api.data;

import java.util.List;

/**
 * Created by kevinwen on 2014/12/27.
 * Copyright (c) 2014/12/27.KevinWen. All rights reserved.
 */
public class LM_DataHistory {
    //{"error_code":0,"data":[{"value":"0,700","timestamp":"1419667517000"},{"value":"1,700","timestamp":"1419667344000"},{"value":"0,700","timestamp":"1419664761000"},{"value":"0,700","timestamp":"1419664542000"}]}
    private int error_code;
    private List<Data> data;


    @Override
    public String toString() {
        return "LM_DataHistory{" +
                "error_code=" + error_code +
                ", data=" + data.toString() +
                '}';
    }

    public int getError_code() {
        return error_code;
    }

    public void setError_code(int error_code) {
        this.error_code = error_code;
    }

    public List<Data> getData() {
        return data;
    }

    public void setData(List<Data> data) {
        this.data = data;
    }

    public class Data{

        private String value;
        private String timestamp;

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public String getTimestamp() {
            return timestamp;
        }

        public void setTimestamp(String timestamp) {
            this.timestamp = timestamp;
        }

        @Override
        public String toString() {
            return "{" +
                    "value='" + value + '\'' +
                    ", timestamp='" + timestamp + '\'' +
                    '}';
        }
    }



}
